Global Index
HTML5 JS API Index > SVG Tutorials & Specs

SVGPreserveAspectRatio

An SVGPreserveAspectRatio object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown, as described below.

Properties
const unsigned short
SVG_MEETORSLICE_MEET = 1
Corresponds to value 'meet' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_MEETORSLICE_SLICE = 2
Corresponds to value 'slice' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_MEETORSLICE_UNKNOWN = 0
The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_PRESERVEASPECTRATIO_NONE = 1
Corresponds to value 'none' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_UNKNOWN = 0
The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10
Corresponds to value 'xMaxYMax' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMAXYMID = 7
Corresponds to value 'xMaxYMid' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4
Corresponds to value 'xMaxYMin' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9
Corresponds to value 'xMidYMax' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMIDYMID = 6
Corresponds to value 'xMidYMid' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3
Corresponds to value 'xMidYMin' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMINYMAX = 8
Corresponds to value 'xMinYMax' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMINYMID = 5
Corresponds to value 'XMinYMid' for attribute ‘preserveAspectRatio’.
const unsigned short
SVG_PRESERVEASPECTRATIO_XMINYMIN = 2
Corresponds to value 'xMinYMin' for attribute ‘preserveAspectRatio’.
unsigned short
align
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the object corresponds to a read only attribute or when the object itself is read only.
unsigned short
meetOrSlice
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the object corresponds to a read only attribute or when the object itself is read only.
Referenced by
SVGAnimatedPreserveAspectRatiobaseVal